package customview.com.imageselectordemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import customview.com.imageselectordemo.GalleryFinall.Ac_GalleryFianll;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void MyTest(View view)
    {
        switch (view.getId())
        {
            case R.id.tv1:
                ToAc(Ac_MultiImageSelector.class);
            break;
            case R.id.tv2:
                ToAc(Ac_GalleryFianll.class);
            break;

        }
    }

    public <T> void  ToAc(Class<T> cls)
    {
        Intent it = new Intent(this,cls);
        startActivity(it);
    }

}
